package com.mybatis;

import com.mybatis.mapper.UserMapper;
import com.mybatis.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by
 *
 * @author touni
 * @date 2019/4/11
 * @time 16:49
 */
@Service
public class DemoServiceImpl implements IDemoService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> queryAll() {
        return userMapper.selectAll();
    }
}
